import { IsNotEmpty, IsString } from 'class-validator';
export class CreatePpDto {
  @IsNotEmpty() //验证是否为空
  @IsString() //是否为字符串
  name: string;

  @IsNotEmpty()
  age: number;
  @IsNotEmpty()
  phone: number;

  @IsNotEmpty()
  emil: number;
}
